import {React,Component} from 'react';
import { Menu,Layout } from 'antd';
import { Link } from 'react-router-dom';
import {
    TeamOutlined,
    UserOutlined,
    UserAddOutlined,
    SolutionOutlined,
    CalendarOutlined,
    HeartOutlined,
    LayoutOutlined,
    MedicineBoxOutlined,
    BellOutlined,
    CarOutlined,
    ToolOutlined,EditOutlined,
  } from '@ant-design/icons';
  
const { SubMenu } = Menu;
const { Sider } = Layout;


class IndexNav extends Component {
    constructor(props) {
        super(props);
        this.state = {  }
    }
    render() { 
        return ( 
            <Sider  theme='light' width={300} className='main_sider' style={{overflowX: 'auto',position: 'fixed',height:"100vh"}}>
                <div className="logo"></div>
                <div className='menu_scroll'>
                <Menu theme="light" defaultSelectedKeys={['doctor']} mode="inline" className='main_menu'>
                    <Menu.Item key="home" icon={<CalendarOutlined />}>首页</Menu.Item>
                    <SubMenu key="doctor" icon={<UserOutlined />} title="医生管理" >
                        <Menu.Item key="doctor_all" icon={<TeamOutlined />}><Link to='/DoctorAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="doctor_add" icon={<UserAddOutlined />}><Link to='/DoctorAdd'>添加医生</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="patient" icon={<HeartOutlined />} title="病人管理">
                        <Menu.Item key="patient_all" icon={<TeamOutlined />}><Link to='/PatientAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="patient_add" icon={<UserAddOutlined />}><Link to='/PatientAdd'>添加病人</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="visit" icon={<SolutionOutlined />} title="出诊记录">
                        <Menu.Item key="visit_all" icon={<TeamOutlined />}><Link to='/VisitingAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="visit_add" icon={<UserAddOutlined />}><Link to='/VisitingAdd'>添加记录</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="bed" icon={<LayoutOutlined />} title="病床管理">
                        <Menu.Item key="bed_all" icon={<TeamOutlined />}><Link to='/HospitalBedAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="bed_add" icon={<UserAddOutlined />}><Link to='/HospitalBedAdd'>添加病床</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="drug" icon={<MedicineBoxOutlined />} title="药品管理">
                        <Menu.Item key="drug_all" icon={<TeamOutlined />}><Link to='/drugAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="drug_add" icon={<UserAddOutlined />}><Link to='/drugAdd'>添加药品</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="operate" icon={<BellOutlined />} title="手术室管理">
                        <Menu.Item key="operate_all" icon={<TeamOutlined />}>查看所有</Menu.Item>
                        <Menu.Item key="operate_add" icon={<UserAddOutlined />}>添加手术室</Menu.Item>
                    </SubMenu>
                    <SubMenu key="equipment" icon={<ToolOutlined />} title="器材管理">
                        <Menu.Item key="equipment_all" icon={<TeamOutlined />}><Link to='/equipmentAll'>查看所有</Link></Menu.Item>
                        <Menu.Item key="equipment_add" icon={<UserAddOutlined />}><Link to='/equipmentAdd'>添加器材</Link></Menu.Item>
                    </SubMenu>
                    <SubMenu key="ambulance" icon={<CarOutlined />} title="救护车管理">
                        <Menu.Item key="ambulance_all" icon={<TeamOutlined />}>查看所有</Menu.Item>
                        <Menu.Item key="ambulance_add" icon={<UserAddOutlined />}>添加救护车</Menu.Item>
                    </SubMenu>
                    <SubMenu key="leave" icon={<EditOutlined />} title="请假管理">
                        <Menu.Item key="leave_all" icon={<TeamOutlined />}>查看所有</Menu.Item>
                        <Menu.Item key="leave_add" icon={<UserAddOutlined />}>请假申请</Menu.Item>
                    </SubMenu>
                    <Menu.Item key="roster" icon={<CalendarOutlined />}>排班表</Menu.Item>
                </Menu>
                </div>

            </Sider>
        );
    }
}
 
export default IndexNav;